package com.nextpro.media.encoder;

import junit.framework.TestCase;

/**
 * Created by Administrator on 14-2-18.
 */
public class PlatFormEncoderTest extends TestCase {
    public void testOS(){
        System.out.println(PlatFormEncoder.osName);
    }
    public void testGetW32Encoder(){
        assertEquals(W32Encoder.class,PlatFormEncoder.createEncoder(null).getClass());
    }
    public void testEncoder(){
        Encoder encoder = PlatFormEncoder.createEncoder(null);
        assertTrue(encoder.encode("F:\\oschina\\nodejs-media\\media\\public\\media\\1.hlv"));
    }
}
